package com.youkeyi.ddy.cloud.common.api.application.applet.crm.order;

import com.youkeyi.ddy.cloud.common.api.application.applet.crm.order.dto.AppletCustomerOrderDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.order.dto.AppletCustomerOrderListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.order.param.AppletCustomerOrderCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.order.param.AppletCustomerOrderListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.applet.crm.order.param.AppletCustomerOrderUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * AppletCustomerOrderCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/applet/customer/order/fallback")
public class AppletCustomerOrderCloudServiceFallback implements AppletCustomerOrderCloudService {

    @Override
    public AppletCustomerOrderListCloudDto list(AppletCustomerOrderListCloudParam param) {
        return new AppletCustomerOrderListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public AppletCustomerOrderDetailCloudDto detail(String customerOrderPrimaryKey) {
        return new AppletCustomerOrderDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(AppletCustomerOrderCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(AppletCustomerOrderUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
